<?php

// $name = 90;


// setcookie('username','ewrtjlkejrtl',time()+7*86400,'/');
// setcookie('password','123456',time()+7*86400,'/');
// setcookie('id',json_encode([345,345,34,5,435]));



// var_dump($name);


session_start();

$_SESSION['name']= 'rretertert';

setcookie(session_name(),session_id(),time()+7*86400,'/');